SRC_PATH ?= src

MAINSRC += $(shell find $(SRC_PATH)/main -type f -name '*.c')
MAINSRC += $(shell find $(SRC_PATH)/ui -type f -name '*.c')
MAINSRC += $(shell find $(SRC_PATH)/wayland -type f -name '*.c')
MAINSRC += $(shell find $(SRC_PATH)/img -type f -name '*.c')
MAINSRC += $(shell find $(SRC_PATH)/drivers -type f -name '*.c')
MAINSRC += $(shell find $(SRC_PATH)/wifi -type f -name '*.c')
MAINSRC += $(shell find $(SRC_PATH)/cJSON -type f -name '*.c')
MAINSRC += $(shell find $(SRC_PATH)/rabbitmq -type f -name '*.c')

CFLAGS += "-I$(SRC_PATH)/include"
CFLAGS += "-I$(SRC_PATH)"
CFLAGS += "-I$(SRC_PATH)/cJSON"
